#ifndef TILE_TABLE_DELEGATE_H
#define TILE_TABLE_DELEGATE_H

#include <QStyledItemDelegate>

class TileTableDelegate : public QStyledItemDelegate {
  Q_OBJECT
 public:
  explicit TileTableDelegate(QObject* parent = NULL);

  virtual void paint(QPainter* painter,
                     const QStyleOptionViewItem& option,
                     const QModelIndex& index) const;

  virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;

 public slots:
  void setScaleFactor(qreal factor);

 private:
  qreal scale_factor_;
};

#endif // TILE_TABLE_DELEGATE_H
